import request from '@/utils/request'

// 查询单证类型列表
export function listDocumentType(query) {
  return request({
    url: '/fiscale/documentType/list',
    method: 'get',
    params: query
  })
}

// 查询单证类型详细
export function getDocumentType(typeId) {
  return request({
    url: '/fiscale/documentType/' + typeId,
    method: 'get'
  })
}

// 新增单证类型
export function addDocumentType(data) {
  return request({
    url: '/fiscale/documentType',
    method: 'post',
    data: data
  })
}

// 修改单证类型
export function updateDocumentType(data) {
  return request({
    url: '/fiscale/documentType',
    method: 'put',
    data: data
  })
}

// 删除单证类型
export function deleteDocumentType(typeId) {
  return request({
    url: '/fiscale/documentType/' + typeId,
    method: 'delete'
  })
}